import java.util.Arrays

public class CopyArray {
    public static void main(String[] args) {
        int scores1[] = {1,2,3,4,5,6,7,8,9,0};
        int scores2[] = Arrays.copyOf(scores1,scores1.length);
        for (int score : scores2){
            System.out.printf("%3d",score);
        }
        System.out.println();
        scores2[0] = 2;
        for (int score : scores1){
            System.out.printf("%3d",score);
        }
        System.out.println();
        for (int score : scores2){
            System.out.printf("%3d",score);
        }
    }
}